/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.levelsManager;
import com.cadi.aux.Levels;
import com.cadi.games.CurrencyMatch;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author ApoZuniga
 */
public class LevelsCurrencyMatch extends Levels {

    private JLabel background;
    public LevelsCurrencyMatch() {
        easy.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                CurrencyMatch levelOne = new CurrencyMatch(true);
                window.setVisible(false);
            }
        });
        intermediate.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                CurrencyMatch levelTwo = new CurrencyMatch(false);
                levelTwo.setLevelOneInt();
                window.setVisible(false);
            }
        });
        difficult.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                CurrencyMatch levelThree = new CurrencyMatch(false);
                levelThree.setLevelOneHard();
                window.setVisible(false);
            }
        });
        extraLevel.setVisible(false);
        background = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo1.png")));
        background.setBounds(0, 0, 1280,800);
        container.add(background, JLayeredPane.PALETTE_LAYER);
        window.setVisible(true);
        voice.play();
    }
    
}
